package com.yuxh.blog.service;

import com.yuxh.blog.model.Timeline;
import com.yuxh.blog.repository.TimelineRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TimelineService {

    @Autowired
    private TimelineRepository timelineRepository;

    public List<Timeline> list() {
        return timelineRepository.findAll();
    }
}
